<script type='text/javascript'>
 var div = document.createElement('div'); 
 div.style.display = 'none';
 var names = ['bash','js','css','cpp','pascal','python','php','text','sql','perl','as3','xml'];
 for (var i in names) {
  var pre = document.createElement('pre'); 
  pre.className = 'brush:' + names[i];
  div.appendChild(pre);
 }
 document.getElementsByTagName('body')[0].appendChild(div);

 function loadScript(url, callback){
  var script = document.createElement('script')
  script.type = 'text/javascript';
  if (script.readyState){  //IE
   script.onreadystatechange = function(){
    if (script.readyState == 'loaded' ||
      script.readyState == 'complete'){
     script.onreadystatechange = null;
     callback();
    }
   };
  } else {  //Others
   script.onload = function(){
    callback();
   };
  }
  script.src = url;
  document.getElementsByTagName('head')[0].appendChild(script);
 }
 loadScript('http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js', 
  function(){
   loadScript('http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js', 
    function(){
     SyntaxHighlighter.config.bloggerMode = true;
     SyntaxHighlighter.autoloader(
       'bash  http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js',
       'js jscript javascript http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js',
       'css http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js',
       'cpp c http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js',
       'delphi pascal http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDelphi.js',
       'py python http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js',
       'php http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js',
       'text plain http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js',
       'sql http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js',
       'perl pl http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js',
       'actionscript3 as3 http://alexgorbatchev.com/pub/sh/current/scripts/shBrushAS3.js',
       'xml xhtml xslt html http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js'      
     );     
     SyntaxHighlighter.all();
    }  
   );
  }
 );
</script>
